using RAG.Domain.Entities.App;

namespace RAG.Application.Services.Interfaces;

/// <summary>
/// 会话服务接口
/// </summary>
public interface ISessionService
{
    /// <summary>
    /// 获取或创建会话
    /// </summary>
    /// <param name="sessionId">会话ID（如果为null则创建新会话）</param>
    /// <param name="userId">用户ID</param>
    /// <param name="sessionName">会话名称</param>
    /// <returns>会话ID</returns>
    Task<Guid> GetOrCreateSessionAsync(Guid? sessionId, Guid userId, string sessionName = "新会话");
}

